{
  "properties" : { },
  "id" : "0464d2b4b32244d0a54f4b7549eadecb",
  "script" : null,
  "groupId" : "8072991b1c194fb08fdf8da03cd8c54b",
  "name" : "查询已绑定的巡检项",
  "createTime" : 1727071094671,
  "updateTime" : 1725272256721,
  "lock" : "1",
  "createBy" : "ndmp",
  "updateBy" : "ndmp",
  "path" : "listBindAuditItem",
  "method" : "POST",
  "parameters" : [ ],
  "options" : [ ],
  "requestBody" : "{\"id\":\"1828994943440404482\"}",
  "headers" : [ ],
  "paths" : [ ],
  "responseBody" : "{\n    \"status\": 200,\n    \"message\": \"success\",\n    \"data\": [\n        \"设备内存\"\n    ]\n}",
  "description" : "",
  "requestBodyDefinition" : {
    "name" : null,
    "value" : null,
    "description" : null,
    "required" : false,
    "dataType" : "String",
    "type" : null,
    "defaultValue" : null,
    "validateType" : null,
    "error" : null,
    "expression" : null,
    "children" : null
  },
  "responseBodyDefinition" : {
    "name" : null,
    "value" : null,
    "description" : null,
    "required" : false,
    "dataType" : "String",
    "type" : null,
    "defaultValue" : null,
    "validateType" : null,
    "error" : null,
    "expression" : null,
    "children" : null
  }
}
================================
var list = db.select("""  select name from  ndmp_audit_rule where id in(
        select rule_id from ndmp_audit_task_rule where task_id = #{body.id}) """)
var res = new ArrayList()
for (map in list) {
    res.add(map.get("name"))

}
return res